<?php /* Smarty version 2.6.19, created on 2012-12-22 17:18:25
         compiled from vietcad/register.tpl.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
    	<div class="content">
   			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        	<div class="cont_right">
           		<div class="main_content">
                	<h2>Đăng ký thành viên</h2>
                     <?php echo ' 
                    <script language="javascript">
					function CheckFormMail()
					{
							with (document.FormName)
							{
								if (username.value=="")
								{
										alert("Mời bạn nhâp tên đăng nhập!");
										username.focus();
										return false;
								}
							
							   
							
								if (password.value=="")
								{
										alert("Mời bạn nhập mật khẩu");
										password.focus();
										return false;
								}
							
								if (cpassword.value=="")
								{
										alert("Mời bạn xác nhận mật khẩu");
										cpassword.focus();
										return false;
								}
								if (fullname.value=="")
								{
										alert("Mời bạn nhập họ tên");
										fullname.focus();
										return false;
								}

							 if (email.value=="")
								{
										alert("Mời bạn nhập địa chỉ Email!");
										email.focus();
										return false;
								}
								else
								{
										if(email.value.indexOf("@")<0||email.value.indexOf(".")<0)
										{
												alert("Địa chỉ Email không hợp lệ!");
												email.focus();
												return false;
										}
								}		
							if (code.value=="")
								{
										alert("Mời bạn nhập mã xác nhận");
										code.focus();
										return false;
								}
							}
							return true;
					}
                   </script> 
                    '; ?>

                    <div class="formType">
                      <form action="" method="post" name="FormName" target="_parent" onSubmit="return CheckFormMail();">
                        <dl>
                        
                          <dd>
                          <p>&nbsp;</p>
                          <?php if ($this->_tpl_vars['error']): ?><p style=" color:#F00; font-weight:bold"><?php echo $this->_tpl_vars['error']; ?>
</p><?php endif; ?>
                            <p>
                              <label for="username2">Tên đăng nhập:<span> *</span></label>
                              <input type="text" value="" name="username" id="username">
                            </p>
                            <p>
                              <label for="pass">Mật khẩu:<span> *</span></label>
                              <input type="password" value="" name="password" id="password">
                            </p>
                            <p>
                              <label for="confirmpass">Xác nhận mật khẩu:<span> *</span></label>
                              <input type="password" value="" name="cpassword" id="cpassword">
                            </p>
                            <p>
                              <label for="fullname">Họ tên:<span> *</span></label>
                              <input type="text" value="" name="fullname" id="fullname">
                            </p>
                            <p>
                              <label for="email">Email:<span> *</span></label>
                              <input type="text" value="" name="email" id="email">
                            </p>
                            <p>
                              <label for="email">Địa chỉ:</label>
                              <input type="text" value="" name="address" id="address">
                            </p>
                            <p>
                              <label for="email">Số điện thoại:</span></label>
                              <input type="text" value="" name="tel" id="tel">
                            </p>
                            <p>
                              <label for="email">Công ty:</label>
                              <input type="text" value="" name="congty" id="congty">
                            </p>
                             <div id="imgCode">
                              <label for="email">Mã xác nhận:</label>
                        <input name="code" class="input-text" id="txtcode" alt="Mã xác nhận" maxlength="6" notnull="1" type="text" style="float:left; margin-right:15px; width:100px">
                        &nbsp;<img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/authimg.php" alt="Authenticate image" height="23" align="left"/></div>
                      <?php if ($this->_tpl_vars['listerror'][3]): ?> <span class="msg"><?php echo $this->_tpl_vars['listerror'][3]; ?>
</span> <?php endif; ?> <br>
                            <p class="btn">
                        	
                            <input type="submit" value="Đăng ký" title="Đăng ký" name="btnRegister"><input type="reset" value="Làm lại" title="Làm lại" name="btnReset">
                             <input name="op" value="register" type="hidden">
                            <input name="lang" value="<?php echo $this->_tpl_vars['lang']; ?>
" type="hidden">
                            <input name="slug" value="<?php echo $this->_tpl_vars['slug']; ?>
" type="hidden">
                        </p>
                          </dd>
                        </dl>
                      </form>
                    </div>
                </div>
  			 </div>
   		</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 